<?php
/**
* EasySEF - SEF component for Joostina CMS.
* @author:      Лаборатория сайтов, http://sitelab.net.ru
* @version:     1.1
* @release:     2010.01.07
* @package:     com_sef
* @copyright:   (C) 2010 http://sitelab.net.ru,  see /administrator/components/com_sef/copyright.php
* @license:     http://www.gnu.org/copyleft/gpl.html GNU/GPL
*
* Cоздан на базе sh404SEF  (C) 2007 by Yannick Gaultier
**/

defined( '_VALID_MOS' ) or die('');

require_once( $mainframe->getPath( 'toolbar_html' ) );
require_once( $mainframe->getPath( 'toolbar_default' ) );
switch ( $task ) {
  case 'view':
    if (@$_GET['section'] == "config")
    TOOLBAR_sef::_NEW();
    else
    TOOLBAR_sef::_DEFAULT();
    break;
  case 'viewMeta':
    TOOLBAR_sef::_META();
    break;
  case 'showconfig':
  case 'edit':
  case 'editMeta':
  case 'newMetaFromSEF':
  case 'homeAlias':
    TOOLBAR_sef::_EDIT();
    break;
  case 'new':
  case 'newMeta':
    TOOLBAR_sef::_NEW();
    break;
  case 'viewDuplicates':
    TOOLBAR_sef::_DUPLICATES();
    break;
  case 'newHomeMeta':  // V 1.2.4.t
  case 'newHomeMetaFromSEF':  // V 1.2.4.t
    TOOLBAR_sef::_EDIT_HOME_META($task);
    break;
  default:
    TOOLBAR_sef::_INFO();
    break;
}
?>
